package executable.instance.inheritance;

import ctu.kfad.run.util.StringUtil;

public class TrickyInheritanceClassD extends TrickyInheritanceClassA {

    private String privateMethod(String s) {
        return StringUtil.concatenate(s, "ClassPrivateD");
    }

    public String callMyPrivateMethodD(String s) {
        return privateMethod(s);
    }

    public static String callPrivate1() {
        return new TrickyInheritanceClassD().callMyPrivateMethodD("startInD");
    }

    public static String callPrivate2() {
        return new TrickyInheritanceClassD().callMyPrivateMethodA("startInD");
    }
}
